package Expe6;

/**
 * @Author sy
 * @Date 2022/9/27
 */
public class Expe6T2 {
    public static void main(String[] args) {
        Person p1 = new Person();
        p1.Person("sy",20);
        p1.speak();
    }
}
class Person{
    String name;
    int age;
    public void  Person(String name,int age) {
        this.name=name;
        this.age =age;
    }
    void speak(){
//        this.name = name;
//        this.age = age;
        System.out.println(name);
        System.out.println(age);
    }

}
